package org.blogwu.jvm_learn.service;


import org.blogwu.jvm_learn.dao.UserDao;
import org.blogwu.jvm_learn.filters.UserFilters;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    UserDao userDao;

    public void add(String username) {
        System.out.println("UserService:" + UserFilters.requestId.get() + ":" + username);
        userDao.add(username);
    }
}
